export const systemRouter = [
    // 司机管理相关路由
    {
        path: 'driver-info',
        name: 'driver_info',
        component: () => import('@/components/Views/driver/driverInfo.vue'),
        meta: {
            title: '司机信息',
            requireAuth: false,
            menuKey: 'driver'
        },
        props: (route) => ({ // 动态解析 query
            driverId: route.query.id||'id',
            driverName: route.query.name||'2131',
        }),
    },
    {
        path: 'driver-account',
        name: 'driver_account',
        component: () => import('@/components/Views/driver/driverAccount.vue'),
        meta: {
            title: '司机账户',
            requireAuth: true,
            menuKey: 'driver'
        }
    },
    {
        path: 'driver-detail',
        name: 'driver_detail',
        component: () => import('@/components/Views/driver/driverDetail.vue'),
        meta: {
            title: '账户明细',
            requireAuth: true,
            menuKey: 'driver'
        }
    },
    {
        path: 'driver-face-recognition',
        name: 'driver_face_recognition',
        component: () => import('@/components/Views/driver/FaceRecognition.vue'),
        meta: {
            title: '人脸认证',
            requireAuth: true,
            menuKey: 'driver'
        }
    },
    {
        path: 'driver-login-log',
        name: 'driver_login_log',
        component: () => import('@/components/Views/driver/LoginLog.vue'),
        meta: {
            title: '登录记录',
            requireAuth: true,
            menuKey: 'driver'
        }
    },
    {
        path: 'driver-set',
        name: 'driver_set',
        component: () => import('@/components/Views/driver/DriverSettings.vue'),
        meta: {
            title: '司机设置',
            requireAuth: true,
            menuKey: 'driver'
        }
    },

    // 客户管理相关路由
    {
        path: 'customer-info',
        name: 'customer_info',
        component: () => import('@/components/Views/customer/CustomerInfo.vue'),
        meta: {
            title: '客户信息',
            requireAuth: true,
            menuKey: 'customer'
        }
    },
    {
        path: 'customer-login-log',
        name: 'customer_login_log',
        component: () => import('@/components/Views/customer/LoginLog.vue'),
        meta: {
            title: '登录日志',
            requireAuth: true,
            menuKey: 'customer'
        }
    },

    // 优惠券管理相关路由
    {
        path: 'coupon',
        name: 'coupon',
        component: () => import('@/components/Views/coupon/CouponList.vue'),
        meta: {
            title: '优惠券',
            requireAuth: true,
            menuKey: 'coupon'
        }
    },
    {
        path: 'coupon-info',
        name: 'coupon_info',
        component: () => import('@/components/Views/coupon/CouponDetail.vue'),
        meta: {
            title: '券信息',
            requireAuth: true,
            menuKey: 'coupon'
        }
    },
    {
        path: 'customer-coupon',
        name: 'customer_coupon',
        component: () => import('@/components/Views/coupon/CustomerCoupon.vue'),
        meta: {
            title: '客户优惠券',
            requireAuth: true,
            menuKey: 'coupon'
        }
    },

    // 订单管理相关路由
    {
        path: 'order-info',
        name: 'order_info',
        component: () => import('@/components/Views/order/OrderInfo.vue'),
        meta: {
            title: '订单信息',
            requireAuth: true,
            menuKey: 'order'
        }
    },
    {
        path: 'order-bill',
        name: 'order_bill',
        component: () => import('@/components/Views/order/OrderBill.vue'),
        meta: {
            title: '订单账单',
            requireAuth: true,
            menuKey: 'order'
        }
    },
    {
        path: 'order-comment',
        name: 'order_comment',
        component: () => import('@/components/Views/order/OrderComments.vue'),
        meta: {
            title: '订单评价',
            requireAuth: true,
            menuKey: 'order'
        }
    },
    {
        path: 'order-monitor',
        name: 'order_monitor',
        component: () => import('@/components/Views/order/OrderMonitor.vue'),
        meta: {
            title: '订单监控',
            requireAuth: true,
            menuKey: 'order'
        }
    },
    {
        path: 'order-monitor-record',
        name: 'order_monitor_record',
        component: () => import('@/components/Views/order/OrderMonitorRecord.vue'),
        meta: {
            title: '监控记录',
            requireAuth: true,
            menuKey: 'order'
        }
    },
    {
        path: 'order-profitsharing',
        name: 'order_profitsharing',
        component: () => import('@/components/Views/order/OrderProfitsharing.vue'),
        meta: {
            title: '分润记录',
            requireAuth: true,
            menuKey: 'order'
        }
    },
    {
        path: 'order-status-log',
        name: 'order_status_log',
        component: () => import('@/components/Views/order/orderStatusLog.vue'),
        meta: {
            title: '状态日志',
            requireAuth: true,
            menuKey: 'order'
        }
    },
    {
        path: 'order-track',
        name: 'order_track',
        component: () => import('@/components/Views/order/orderTrack.vue'),
        meta: {
            title: '订单轨迹',
            requireAuth: true,
            menuKey: 'order'
        }
    },
    {
        path: 'order-job',
        name: 'order_job',
        component: () => import('@/components/Views/order/OrderJob.vue'),
        meta: {
            title: '订单任务',
            requireAuth: true,
            menuKey: 'order'
        }
    },

    // 规则管理相关路由
    {
        path: 'cancel-rule',
        name: 'cancel_rule',
        component: () => import('@/components/Views/rule/CancelRule.vue'),
        meta: {
            title: '取消规则',
            requireAuth: true,
            menuKey: 'rule'
        }
    },
    {
        path: 'fee-rule',
        name: 'fee_rule',
        component: () => import('@/components/Views/rule/FeeRule.vue'),
        meta: {
            title: '费用规则',
            requireAuth: true,
            menuKey: 'rule'
        }
    },
    {
        path: 'profitsharing-rule',
        name: 'profitsharing_rule',
        component: () => import('@/components/Views/rule/ProfitsharingRule.vue'),
        meta: {
            title: '分润规则',
            requireAuth: true,
            menuKey: 'rule'
        }
    },
    {
        path: 'reward-rule',
        name: 'reward_rule',
        component:()=>import('@/components/Views/rule/RewardRule.vue'),
        meta: {
            title: '奖励规则',
            requireAuth: true,
            menuKey: 'rule'
        }
    },

    // 支付管理相关路由
    {
        path: 'payment-info',
        name: 'payment_info',
        component:()=>import('@/components/Views/payment/PaymentInfo.vue'),
        meta: {
            title: '支付信息',
            requireAuth: true,
            menuKey: 'payment'
        }
    },
    {
        path: 'profitsharing-info',
        name: 'profitsharing_info',
        component:()=>import('@/components/Views/payment/ProfitsharingInfo.vue'),
        meta: {
            title: '分润信息',
            requireAuth: true,
            menuKey: 'payment'
        }
    },

    // 调度管理相关路由
    {
        path: 'xxl-job-log',
        name: 'xxl_job_log',
        component:()=>import('@/components/Views/dispatch/XxlJobLog.vue'),
        meta: {
            title: '调度日志',
            requireAuth: true,
            menuKey: 'dispatch'
        }
    },

    // 系统配置相关路由
    {
        path: 'sys-basic-config',
        name: 'sys_basic_config',
        component:()=>import('@/components/Views/system/BasicConfig.vue'),
        meta: {
            title: '基础配置',
            requireAuth: true,
            menuKey: 'system_config'
        }
    },
    {
        path: 'sys-payment-config',
        name: 'sys_payment_config',
        component:()=>import('@/components/Views/system/PaymentConfig.vue'),
        meta: {
            title: '支付渠道',
            requireAuth: true,
            menuKey: 'system_config'
        }
    },
    {
        path: 'sys-map-config',
        name: 'sys_map_config',
        component:()=>import('@/components/Views/system/MapConfig.vue'),
        meta: {
            title: '地图API',
            requireAuth: true,
            menuKey: 'system_config'
        }
    },

    // 运营管理相关路由
    {
        path: 'ops-notice',
        name: 'ops_notice',
        component:()=>import('@/components/Views/operation/Notice.vue'),
        meta: {
            title: '公告管理',
            requireAuth: true,
            menuKey: 'operation'
        }
    },
    {
        path: 'ops-banner',
        name: 'ops_banner',
        component:()=>import('@/components/Views/operation/Banner.vue'),
        meta: {
            title: '轮播图',
            requireAuth: true,
            menuKey: 'operation'
        }
    },
    {
        path: 'ops-activity',
        name: 'ops_activity',
        component:()=>import('@/components/Views/operation/Activity.vue'),
        meta: {
            title: '营销活动',
            requireAuth: true,
            menuKey: 'operation'
        }
    },

    // 客户服务相关路由
    {
        path: 'cs-ticket',
        name: 'cs_ticket',
        component:()=>import('@/components/Views/customer-service/Ticket.vue'),
        meta: {
            title: '工单系统',
            requireAuth: true,
            menuKey: 'customer_service'
        }
    },
    {
        path: 'cs-verify',
        name: 'cs_verify',
        component:()=>import('@/components/Views/customer-service/Verify.vue'),
        meta: {
            title: '实名审核',
            requireAuth: true,
            menuKey: 'customer_service'
        }
    },
    {
        path: 'cs-feedback',
        name: 'cs_feedback',
        component:()=>import('@/components/Views/customer-service/Feedback.vue'),
        meta: {
            title: '用户反馈',
            requireAuth: true,
            menuKey: 'customer_service'
        }
    },

    // 业务管理相关路由
    {
        path: 'business-customer',
        name: 'business_customer',
        component:()=>import('@/components/Views/business/Coupon.vue'),
        meta: {
            title: '客户管理',
            requireAuth: true,
            menuKey: 'business'
        }
    },
    {
        path: 'business-driver',
        name: 'business_driver',
        component:()=>import('@/components/Views/business/Coupon.vue'),
        meta: {
            title: '司机管理',
            requireAuth: true,
            menuKey: 'business'
        }
    },
    {
        path: 'business-order',
        name: 'business_order',
        component:()=>import('@/components/Views/business/Coupon.vue'),
        meta: {
            title: '订单管理',
            requireAuth: true,
            menuKey: 'business'
        }
    },
    {
        path: 'business-dispatch',
        name: 'business_dispatch',
        component:()=>import('@/components/Views/business/Coupon.vue'),
        meta: {
            title: '调度管理',
            requireAuth: true,
            menuKey: 'business'
        }
    },
    {
        path: 'business-payment',
        name: 'business_payment',
        component:()=>import('@/components/Views/business/Coupon.vue'),
        meta: {
            title: '支付管理',
            requireAuth: true,
            menuKey: 'business'
        }
    },
    {
        path: 'business-coupon',
        name: 'business_coupon',
        component:()=>import('@/components/Views/business/Coupon.vue'),
        meta: {
            title: '优惠券管理',
            requireAuth: true,
            menuKey: 'business'
        }
    }
]



